package com.dbb.entity;

import javax.persistence.Embeddable;
import javax.persistence.Table;

import org.hibernate.annotations.Parent;

@Embeddable
@Table(name = "CODE_DETAIL")
public class CodeDetail {
	Code code;
	String name;
	
	public CodeDetail() {}
	
	public CodeDetail(String name) {
		this.name = name;
	}
	@Parent
	public Code getCode() {
		return code;
	}
	public void setCode(Code code) {
		this.code = code;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	} 
	
	
}
